export default {
  state: {
    cardMinHeight: 770,
    pageTitleWidth: 0,
  },
  getters: {
    getCardMinHeight(state) {
      return state.cardMinHeight;
    },
    getPageTitleWidth(state) {
      return state.pageTitleWidth;
    }
  },
  mutations: {
    setCardMinHeight(state, height) {
      state.cardMinHeight = height;
    },
    setPageTitleWidth(state, width) {
      state.pageTitleWidth = width;
    }
  },
  actions: {
    updateCardMinHeight({ commit }, height) {
      commit('setCardMinHeight', height);
    },
    updatePageTitleWidth({ commit }, width) {
      commit('setPageTitleWidth', width);
    }
  }
};